class ClassFunc:
  # 定义类属性
  count = 0
  def __init__(self):
    ClassFunc.count += 1

  @classmethod
  def get_count(cls):
    return cls.count

  @classmethod
  def reset_count(cls):
    cls.count = 0

c1 = ClassFunc()
c2 = ClassFunc()

print(ClassFunc.count)
print(ClassFunc.get_count())

ClassFunc.reset_count()
print(ClassFunc.get_count())
